package com.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wty
 * @since 2021-04-19
 */
@Data
@Accessors(chain = true)
public class Operation extends Model<Operation> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 任务
     */
    @TableField("task_store_id")
    private Integer taskStoreId;
    /**
     * 操作时间
     */
    @TableField("add_time")
    private Long addTime;
    /**
     * 状态
     */
    private Integer status;

    /**
     * 任务名字
     * @return
     */
    @TableField(exist = false)
    private String taskStoreName;

    /**
     * 任务名字
     * @return
     */
    @TableField(exist = false)
    private String addTimeStr;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
